bus = [
1	3	0	0	0	0	1	1.06	0	0	1	1.06	0.94	
2	2	21.7	12.7	0	0	1	1.045	-4.98	0	1	1.06	0.94	
3	2	94.2	19	0	0	1	1.01	-12.72	0	1	1.06	0.94	
4	1	47.8	-3.9	0	0	1	1.019	-10.33	0	1	1.06	0.94	
5	1	7.6	1.6	0	0	1	1.02	-8.78	0	1	1.06	0.94	
6	2	11.2	7.5	0	0	1	1.07	-14.22	0	1	1.06	0.94	
7	1	0	0	0	0	1	1.062	-13.37	0	1	1.06	0.94	
8	2	0	0	0	0	1	1.09	-13.36	0	1	1.06	0.94	
9	1	29.5	16.6	0	19	1	1.056	-14.94	0	1	1.06	0.94	
10	1	9	5.8	0	0	1	1.051	-15.1	0	1	1.06	0.94	
11	1	3.5	1.8	0	0	1	1.057	-14.79	0	1	1.06	0.94	
12	1	6.1	1.6	0	0	1	1.055	-15.07	0	1	1.06	0.94	
13	1	13.5	5.8	0	0	1	1.05	-15.16	0	1	1.06	0.94	
14	1	14.9	5	0	0	1	1.036	-16.04	0	1	1.06	0.94	
];
branch = [
1	2	0.01938	0.05917	0.0528	0	0	0	0	0	1	-360	360	
1	5	0.05403	0.22304	0.0492	0	0	0	0	0	1	-360	360	
2	3	0.04699	0.19797	0.0438	0	0	0	0	0	1	-360	360	
2	4	0.05811	0.17632	0.034	0	0	0	0	0	1	-360	360	
2	5	0.05695	0.17388	0.0346	0	0	0	0	0	1	-360	360	
3	4	0.06701	0.17103	0.0128	0	0	0	0	0	1	-360	360	
4	5	0.01335	0.04211	0	0	0	0	0	0	1	-360	360	
6	11	0.09498	0.1989	0	0	0	0	0	0	1	-360	360	
6	12	0.12291	0.25581	0	0	0	0	0	0	1	-360	360	
6	13	0.06615	0.13027	0	0	0	0	0	0	1	-360	360	
7	8	0	0.17615	0	0	0	0	0	0	1	-360	360	
7	9	0	0.11001	0	0	0	0	0	0	1	-360	360	
9	10	0.03181	0.0845	0	0	0	0	0	0	1	-360	360	
9	14	0.12711	0.27038	0	0	0	0	0	0	1	-360	360	
10	11	0.08205	0.19207	0	0	0	0	0	0	1	-360	360	
12	13	0.22092	0.19988	0	0	0	0	0	0	1	-360	360	
13	14	0.17093	0.34802	0	0	0	0	0	0	1	-360	360	
4	7	0	0.20912	0	0	0	0	0.978	0	1	-360	360	
4	9	0	0.55618	0	0	0	0	0.969	0	1	-360	360	
5	6	0	0.25202	0	0	0	0	0.932	0	1	-360	360	
];
mdata = [
1	2.32447	0.000537667	2.32393	1e+06	1	1	1	
1	0.184834	0.00183389	0.183	1e+06	2	2	2	
1	-0.944259	-0.00225885	-0.942	1e+06	3	3	3	
1	-0.477138	0.000862173	-0.478	1e+06	4	4	4	
1	-0.0756812	0.000318765	-0.076	1e+06	5	5	5	
1	-0.113308	-0.00130769	-0.112	1e+06	6	6	6	
1	-0.295434	-0.000433592	-0.295	1e+06	9	9	9	
1	-0.0896574	0.000342624	-0.09	1e+06	10	10	10	
1	-0.0314216	0.0035784	-0.035	1e+06	11	11	11	
1	-0.0582306	0.00276944	-0.061	1e+06	12	12	12	
1	-0.13635	-0.00134989	-0.135	1e+06	13	13	13	
1	-0.145965	0.00303492	-0.149	1e+06	14	14	14	
2	-0.164768	0.000725404	-0.165493	1e+06	1	1	1	
2	0.308508	-6.30549e-05	0.308571	1e+06	2	2	2	
2	0.0614682	0.000714743	0.0607535	1e+06	3	3	3	
2	0.038795	-0.000204966	0.039	1e+06	4	4	4	
2	-0.0161241	-0.000124144	-0.016	1e+06	5	5	5	
2	0.0537991	0.0014897	0.0523094	1e+06	6	6	6	
2	0.177644	0.00140903	0.176235	1e+06	8	8	8	
2	-0.164583	0.00141719	-0.166	1e+06	9	9	9	
2	-0.0573285	0.000671497	-0.058	1e+06	10	10	10	
2	-0.0192075	-0.00120749	-0.018	1e+06	11	11	11	
2	-0.0152828	0.000717239	-0.016	1e+06	12	12	12	
2	-0.0563698	0.00163024	-0.058	1e+06	13	13	13	
2	-0.0495111	0.000488894	-0.05	1e+06	14	14	14	
0	1.06103	0.00103469	1.06	1e+06	1	1	1	
0	1.04573	0.000726885	1.045	1e+06	2	2	2	
0	1.0097	-0.000303441	1.01	1e+06	3	3	3	
0	1.01796	0.000293871	1.01767	1e+06	4	4	4	
0	1.01873	-0.000787283	1.01951	1e+06	5	5	5	
0	1.07089	0.000888396	1.07	1e+06	6	6	6	
0	1.06037	-0.00114707	1.06152	1e+06	7	7	7	
0	1.08893	-0.00106887	1.09	1e+06	8	8	8	
0	1.05512	-0.000809499	1.05593	1e+06	9	9	9	
0	1.04804	-0.00294428	1.05098	1e+06	10	10	10	
0	1.05834	0.00143838	1.05691	1e+06	11	11	11	
0	1.05551	0.000325191	1.05519	1e+06	12	12	12	
0	1.04963	-0.000754928	1.05038	1e+06	13	13	13	
0	1.0369	0.0013703	1.03553	1e+06	14	14	14	
3	1.56712	-0.00171152	1.56883	1e+06	1	2	1	
4	-0.204145	-0.000102242	-0.204043	1e+06	1	2	1	
3	0.754862	-0.000241447	0.755104	1e+06	1	5	2	
4	0.0388691	0.000319207	0.0385499	1e+06	1	5	2	
3	0.732689	0.000312859	0.732376	1e+06	2	3	3	
4	0.0347371	-0.00086488	0.035602	1e+06	2	3	3	
3	0.561285	-3.00513e-05	0.561315	1e+06	2	4	4	
4	-0.0156684	-0.000164879	-0.0155035	1e+06	2	4	4	
3	0.41579	0.000627707	0.415162	1e+06	2	5	5	
4	0.0128032	0.00109327	0.01171	1e+06	2	5	5	
3	-0.231748	0.00110927	-0.232857	1e+06	3	4	6	
4	0.0438675	-0.000863653	0.0447312	1e+06	3	4	6	
3	-0.611505	7.73591e-05	-0.611582	1e+06	4	5	7	
4	0.157022	-0.00121412	0.158236	1e+06	4	5	7	
3	0.0724193	-0.0011135	0.0735328	1e+06	6	11	8	
4	0.0355979	-6.84933e-06	0.0356047	1e+06	6	11	8	
3	0.0793933	0.00153263	0.0778607	1e+06	6	12	9	
4	0.0242645	-0.000769666	0.0250341	1e+06	6	12	9	
3	0.177851	0.000371379	0.17748	1e+06	6	13	10	
4	0.0719402	-0.000225584	0.0721658	1e+06	6	13	10	
3	0.00111736	0.00111736	-5.70828e-13	1e+06	7	8	11	
4	-0.172719	-0.00108906	-0.17163	1e+06	7	8	11	
3	0.280774	3.25575e-05	0.280742	1e+06	7	9	12	
4	0.0583394	0.000552527	0.0577869	1e+06	7	9	12	
3	0.0533761	0.00110061	0.0522755	1e+06	9	10	13	
4	0.0437356	0.00154421	0.0421914	1e+06	9	10	13	
3	0.0943497	8.59311e-05	0.0942638	1e+06	9	14	14	
4	0.0346085	-0.00149159	0.0361001	1e+06	9	14	14	
3	-0.0385955	-0.000742302	-0.0378532	1e+06	10	11	15	
4	-0.0172122	-0.00106158	-0.0161506	1e+06	10	11	15	
3	0.018493	0.00235046	0.0161426	1e+06	12	13	16	
4	0.00692399	-0.000615602	0.00753959	1e+06	12	13	16	
3	0.0571866	0.000748077	0.0564385	1e+06	13	14	17	
4	0.0172793	-0.000192419	0.0174717	1e+06	13	14	17	
-3	-0.279853	0.00088861	-0.280742	1e+06	4	7	18	
-4	0.113078	-0.000764849	0.113843	1e+06	4	7	18	
-3	-0.1622	-0.00140227	-0.160798	1e+06	4	9	19	
-4	0.0159008	-0.00142238	0.0173232	1e+06	4	9	19	
-3	-0.440385	0.000488194	-0.440873	1e+06	5	6	20	
-4	-0.0806726	-0.000177375	-0.0804952	1e+06	5	6	20	
];

pfresult=[   
1	1.060000	0.000000
2	1.045000	-4.982589
3	1.010000	-12.725100
4	1.017671	-10.312901
5	1.019514	-8.773854
6	1.070000	-14.220946
7	1.061520	-13.359627
8	1.090000	-13.359627
9	1.055932	-14.938521
10	1.050985	-15.097288
11	1.056907	-14.790622
12	1.055189	-15.075585
13	1.050382	-15.156276
14	1.035530	-16.033645
];
